package com.acxy.auth.controller;

import com.acxy.ants.resful.annotation.Controller;
import com.acxy.ants.resful.annotation.GET;
import com.acxy.ants.resful.annotation.PathVariable;
import com.acxy.ants.resful.render.Resource;

/**
 * @author MrShun
 * @version 1.0
 * @Date 2017-09-01
 */
@Controller
public class PageController {

    @GET("/{page}.shtml")
    public Resource page(@PathVariable String page) {
        return new Resource("templates/" + page + ".html");
    }

}
